package day_2022_9_to_12.Day;

/**
 * @author haomin
 * @date 2022/09/15 11:05
 **/
public class Day13_1_Num672_FlipLights {
    class Solution {
        public int flipLights(int n, int presses) {
            if(presses == 0) return 1;
            if(n == 1) return 2;
            if(n == 2) return presses == 1 ? 3 : 4;
            return presses == 1 ? 4 : presses == 2 ? 7 : 8;
        }
    }
}